package com.ruoyi.common.utils.email;

import java.util.regex.Pattern;

public class EmailValidationUtils {
    public static String EMAIL_REGEX = "/^[a-zA-Z0-9][a-zA-Z0-9._%+-]{0,63}@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z]{2,6}$/";

    public static boolean isValidEmail(String email) {
        return Pattern.compile(EMAIL_REGEX).matcher(email).matches();
    }
}
